import { defineStore } from "pinia";
import { computed, ref } from "vue";

export const useSettingStore = defineStore("setting", () => {
  // 声明数据
  const fold = ref(false); //用户控制菜单折叠还是收起控制
  // 声明方法
  const changeFold = () => (fold.value = !fold.value);
  // 声明计算属性
  //  const computedList=computed(()=>count.value*2)

  const refresh = ref(false); //仓库这个属性用于控制刷新效果
  const changeRefresh = () => (refresh.value = !refresh.value);
  return {
    fold,
    changeFold,
    refresh,
    changeRefresh,
  };
});
